<template>
    <view>
        <view v-if="!params_var" class="margin-top load loading text-l load-project"></view>
        <block v-else>
            <!-- parse <template is="newsIndexTpl" :data="showUp:false,upImg:'',skin,dataList,_params,sortItems,sortMenus,search,listMode:listMode||'leftpic',isTotalMenu:false"/> -->
            <block name="newsIndexTpl" v-if="false">
                <cmpt-comm-list
                    type="news"
                    :search="search"
                    :_params="{ cateId: 1 }"
                    :_menus="sortMenus"
                    :_items="sortItems"
                    :isTotalMenu="false"
                    route="news/list"
                    topBottom="120"
                    placeholder="搜索标题"
                    @list="bindCommListCmpt"
                >
                    <view class="up-project" v-if="false">
                        <image v-if="''" mode="widthFix" lazy-load :src="''" />
                    </view>

                    <!-- List Begin -->

                    <template is="baseListTpl" :data="dataList:dataList.list,listMode||'leftpic'" />
                    <!-- List END -->

                    <!-- load begin -->

                    <template is="listLoadTpl" :data="skin:'load-project',dataList" />
                    <!-- load end -->
                </cmpt-comm-list>

                <block v-if="skin.IS_SUB && 'news_cate1'">
                    <template is="menuTpl" :data="(skin, 'news_cate1', returnHome)" />
                </block>
            </block>
        </block>
    </view>
</template>

<script>
let behavior = require('../../../../behavior/news_index_bh.js');
let PassortBiz = require('../../../../biz/passport_biz.js');
let skin = require('../../skin/skin.js');
export default {
    data() {
        return {
            params_var: '',
            search: '',
            sortMenus: '',
            sortItems: '',
            listMode: '',

            dataList: {
                list: ''
            },

            skin: {
                IS_SUB: ''
            }
        };
    },
    mixins: [behavior],
    onReady: function () {
        PassortBiz.initPage({
            skin,
            that: this,
            isLoadSkin: true,
            tabIndex: -1,
            isModifyNavColor: true
        });
        this._setCateTitle(skin);
    },
    methods: {
        bindCommListCmpt() {
            console.log('占位：函数 bindCommListCmpt 未声明');
        }
    }
};
</script>
<style>
@import './news_index.css';
@import 'undefined';
</style>
